import request from "@/utils/request";

let url = '/smartstudio/history'

let urlall='/smartstudio/history/all'

let urlMacInArea='/smartstudio/history/all/area'

let urlMacInType='/smartstudio/history/all/MacInType'

let urlhistoryQuery='/smartstudio/history/all/history'
export default {

    HuoQuTEM(mac)
    {
        return request.get(url + "/" + mac)
    },

    AllTEM(mac)
    {
        return request.get(urlall + "/" + mac)
    },

    MacInArea(area){
        return request.get(
            urlMacInArea,{
                params:{
                    area:area
                }
            }
        )
    },

    MacInType(Type) {
        return request.get(
            urlMacInType,{
                params:{
                    Type:Type
                }
            }
        )
    },
    HistoryQuerry(Area,Type,Mac,TimeStart,TimeEnd,Page,PageSize){
        return request.get(
            urlhistoryQuery,{
                params:{
                    Area:Area,
                    Type:Type,
                    Mac:Mac,
                    TimeStart:TimeStart,
                    TimeEnd:TimeEnd,
                    page:Page,
                    pageSize:PageSize
                }
            }
        )
    },
    HuoQuZheXian(id)
    {
        return request.get(url+"/device",{
            params:{
                id:id
            }
        })
    }

}